IdeaBlade DevForce 2010 Help Reference
SetValue(Object,Object) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > NavigationScalarEntityProperty<TInstance,TValue> Class > SetValue Method : SetValue(Object,Object) Method



instance
value
Sets the value of this property in the specified object. Gets or sets the Manager.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub SetValue( _
   ByVal instance As Object, _
   ByVal value As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As NavigationScalarEntityProperty(Of TInstance,TValue)
Dim instance As Object
Dim value As Object
 
instance.SetValue(instance, value)
C# 
public override void SetValue( 
   object instance,
   object value
)
C++/CLI 
public:
void SetValue( 
   Object^ instance,
   Object^ value
) override 

Parameters

instance
value

Example

C#Copy Code
// Sample auto-generated property

#region Manager property

/// Gets or sets the Manager. 
[Bindable(false)]
[Display(AutoGenerateField=false)]
[DataMember]
[IbEm.RelationProperty("FK_Employees_Employees", IbEm.QueryDirection.ToRole2)]
public Employee Manager {
  get { return PropertyMetadata.Manager.GetValue(this); }
  set { PropertyMetadata.Manager.SetValue(this, value); }
}
#endregion Manager property

Remarks

Any registered IdeaBlade.Validation.VerifierExecutionModes.OnBeforeSetTriggers and IdeaBlade.Validation.VerifierExecutionModes.OnAfterSetTriggers verifiers will be executed.

All setter interceptor actions are called when using this method. This method is called from auto-generated properties in the domain model.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.